home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F31520_testzipWith.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-03-09  |  881 b   |  29 lines

  1. <xsl:stylesheet version="1.0"
  2.  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3.  xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  4.  xmlns:myAdd="f:myAdd"
  5. >
  6.   <xsl:import href="zipWithDVC.xsl"/>
  7.   <!-- to be applied on numList.xml -->
  8.   
  9.   <xsl:output omit-xml-declaration="yes" indent="yes"/>
  10.   <myAdd:myAdd/>
  11.   <xsl:template match="/">
  12.     <xsl:variable name="vFun" select="document('')/*/myAdd:*[1]"/>
  13.  
  14.     <xsl:call-template name="zipWith">
  15.       <xsl:with-param name="pFun" select="$vFun"/>
  16.       <xsl:with-param name="pList1" select="(/*/*)[position() < 6]"/>
  17.       <xsl:with-param name="pList2" select="(/*/*)[position() > 5]"/>
  18.     </xsl:call-template>
  19.   </xsl:template>
  20.  
  21.   <xsl:template match="myAdd:*">
  22.     <xsl:param name="pArg1"/>
  23.     <xsl:param name="pArg2"/>
  24.  
  25.     <xsl:value-of select="$pArg1 + $pArg2"/>
  26.   </xsl:template>
  27.  
  28. </xsl:stylesheet>
  29.